package com.gitee.smsdistribution.strategy.impl;

import com.gitee.smsdistribution.model.DistributionPolicy;
import com.gitee.smsdistribution.model.SmsInfo;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ByCompanyGenUniqueLinkStrategy {

    private SmsInfo smsInfo;
    private DistributionPolicy distributionPolicy;

    public String generateUniqueLink() {
        return this.distributionPolicy.getBaseUrl() + "/" + smsInfo.getId();
    }
}
